<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="js/vue.js"></script>
</head>
<body>
<div id="hhe">
    <h1 v-html="a"></h1>
    <h1 v-text="a"></h1>
</div>
<script>
    var vm=new Vue({
        el:"#hhe",
        data:{
            a:"<a href='www.baidu.com/'>百度一下</a>",
        }
    })
</script>
</body>
</html>